<script src="isa_util.js" ></script>

<script src="js_calendar.js" ></script>
<script>
function DoSubmit(){
document.forms(0).submit();
return;
}
</script>
<?php
/*
include "template.php";
// Lay cac thong so cau hinh chung
include "../app_global.php";
// Lay cac hang so dung chung
include "../const.php";
// Ham thuc hien lay ten file va hien thi noi dung
include "../isa-lib/isa-function/isa_public_function.php";
require_once("../isa-lib/nusoap/nusoap.php");
include "../isa-lib/isa-function/prax.php";
include_once("../isa-lib/isa-function/class_xslt.php");
include "../db_const.php";
include "../connect_ado.php";
include "../test_login.php";
include "../init_session.php";
include "../onegate_function.php";
include "app_local.php";
if (!isset($_REQUEST['modal_dialog_mode'])) {
	include "../dsp_header.php";
	include "dsp_header_view.php";
}else{
	include "dsp_modal_dialog_header.php";
}
*/
?>
<table>
 <tr>
 <td>
 <form action='index.php?fuseaction=date' method = post>
		<input type="hidden" name="fuseaction" value="DISPLAY_ALL_RECORD">
		<input type="hidden" name="fuseaction_back" value="<?php echo $fuseaction_back; ?>">
		<input type="hidden" name="hdn_record_id" value="<?php echo $v_record_id; ?>">
		<input type="hidden" name="hdn_record_id_list" value="">
		<input type="hidden" name="hdn_worktype" value="<?php echo $v_worktype; ?>">
		<input type="hidden" name="hdn_recordtype_filter" value="<?php echo $v_recordtype_filter; ?>">
		<input type="hidden" name="hdn_received_date_filter" value="<?php echo $v_receive_date_filter; ?>">
		<input type='hidden' name='hdn_page' value='<?php echo $v_page;?>'>
		<input type='hidden' name='hdn_record_number_page' value='<?php echo $v_limit_row;?>'>
		<input type='hidden' name='hdn_tranfered' value='<?php echo $v_tranfered;?>'>
 <input type=hidden name =txt_appointed_date>
 <?
 //$v_received_date = date("d/m/Y");
 
 $v_process_date = 0;
 $v_current_year = date("Y");
$v_url_path_calendar = '"'.$_ISA_LIB_URL_PATH.'isa-calendar/"';
 $v_html_string = "<tr><td class='normal_label'>"."<small class='normal_starmark'>*Từ Ngày:</small></td><td width=150><input type='text' name='txt_received_date' class='normal_textbox' style='width:85%' value='$datefrom' optional='' message = '".CONST_RECORD_RECEIVED_DATE_MESSAGE."' isdate='true' >";
$v_html_string = $v_html_string . "<img src='". $_ISA_IMAGE_URL_PATH."calendar.gif' border='0' onclick='DoCal($v_url_path_calendar,document.forms(0).txt_received_date);' style='cursor:hand'></td>
";
//echo '<table>';
//echo $v_html_string;

//echo '</table>';

?>
</td>
<td>
 <?
 
 $v_process_date = 0;
 $v_current_year = date("Y");
 $v_url_path_calendar = '"'.$_ISA_LIB_URL_PATH.'isa-calendar/"';
 $v_html_string .= "<td class='normal_label'>"."<small class='normal_starmark'>*Đến Ngày:</small></td><td width=150><input type='text' name='txt_received_date2' class='normal_textbox' style='width:85%' value='$dateto' optional='' message = '".CONST_RECORD_RECEIVED_DATE_MESSAGE."' isdate='true' >";
$v_html_string = $v_html_string . "<img src='". $_ISA_IMAGE_URL_PATH."calendar.gif' border='0' onclick='DoCal($v_url_path_calendar,document.forms(0).txt_received_date2);' style='cursor:hand'></td>
</tr>";
echo '<table>';
echo $v_html_string;

echo '</table>';
?>
</td>
<br>
<td><input type=button name=bt class="large_button" value='Xem' onclick='DoSubmit()')'></td>
</form>

</tr>
</table>
  <?php
  /*
	include "isa-lib/adodb/adodb.inc.php";
	$ado_conn = &ADONewConnection("isa-onegate");  // create a connection
	$db_name = str_replace('[','',$_ISA_DB_NAME);
	$db_name = str_replace(']','',$db_name);
	$conn_string = "Provider=SQLOLEDB; Data Source=" . $_ISA_SERVER_NAME . ";Initial Catalog='" . $T_ONEGATE_LOGIN . "'; User ID=" . sa . "; Password=" .sa;
	$ado_conn->Connect($conn_string) or die(_CONST_DB_CONNECT_ERROR);	
$sql="SELECT * FROM  T_ONEGATE_LOGIN";
$result=mssql_query($sql,$con);
if(mssql_num_rows($result)>0)
{
	while($row=mssql_fetch_array($result))
	{?>
		<?echo $row["FK_USER"];?><br>
		<?echo $row["C_DATE"];?><br>
		<?echo $row["C_IP"];?><br>
		
	<?}
	
}
else
{
mssql_close($con);
}
 
*/

?>